Learn R Programming

noia (version 0.94.1)

Genotype names: Names of Genotypes

Description

genotype.names provides the names of all possible genotypes in the order required by the NOIA model (Alvarez-Castro and Carlborg 2007). The codes for the genotypes are stored in the vector genotypesNames.

Usage

genNames(nloc = 2)
genNamesAppend(name)

Arguments

nloc
Number of loci
name
The name of the genotype to which an extra locus has to be added.

Details

genNamesAppend is an internal function and is not supposed to be called by anything else than genNames.

The names of the genotypes are stored in the vector genotypesNames. By default, they are "1", "2", and "3", the heterozygotes being "2". The genotypes at different loci are then put together, such as "123" for 3 loci.

References

Alvarez-Castro JM, Carlborg O. (2007). A unified model for functional and statistical epistasis and its application in quantitative trait loci analysis. Genetics 176(2):1151-1167. Le Rouzic A, Alvarez-Castro JM. (2008). Estimation of genetic effects and genotype-phenotype maps. Evolutionary Bioinformatics, 4.

Examples

Run this code
genNames(3)

Run the code above in your browser using DataLab